package a;

import java.util.Random;

public class Demo01 {

	public static void main(String[] args) {
		
		Random abc = new Random();
		
		int [] arr = new int [4]; 
		int [] arr1 = new int [3];
		
		for (int i = 0; i < arr.length; i++) {
			arr[i] = abc.nextInt(9)+1;
		}
		print(arr);
		for (int i = 0; i < arr1.length; i++) {
			arr1[i] = abc.nextInt(9)+1;
		}
		print1(arr1);
		
		
	}	
	
	public static void print (int []arr) {
		System.out.print("[");
		for (int i = 0; i < arr.length; i++) {
				System.out.print(arr[i]);	
		}
		System.out.print(" ");
	}
	
	public static void print1 (int []arr1) {
		for (int i = 0; i < arr1.length; i++) {
				System.out.print(arr1[i]);
			
		}
		System.out.print("]");
		
	}
	
}
